package com.haowu.customer.domain.bo;

import com.haowu.common.core.validate.AddGroup;
import com.haowu.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * 第三方授权登录业务对象
 *
 * @author lky
 * @date 2023-02-13
 */

@Data
public class HwAppSocialAuthBo {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long uid;

    /**
     * 第三方授权登录类型
     */
    @NotBlank(message = "第三方授权登录类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String authType;

    /**
     * 第三方授权登录唯一标识
     */
    @NotBlank(message = "第三方授权登录唯一标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String authIdentification;

    /**
     * 微信授权登录预留字段unionId
     */
    @NotBlank(message = "微信授权登录预留字段unionId不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unionId;

    /**
     * 是否删除 0否1是
     */
    @NotNull(message = "是否删除 0否1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDelete;


}
